import request from '@/utils/request'

// 查询分组明细列表
export function listGroupItem(query) {
  return request({
    url: '/video/GroupItem/list',
    method: 'get',
    params: query
  })
}

// 查询分组明细列表
export function listGroupItemDto(query) {
  return request({
    url: '/video/GroupItem/listDto',
    method: 'get',
    params: query
  })
}

// 查询分组明细详细
export function getGroupItem(id) {
  return request({
    url: '/video/GroupItem/' + id,
    method: 'get'
  })
}



// 新增分组明细
export function addGroupItem(data) {
  return request({
    url: '/video/GroupItem',
    method: 'post',
    data: data
  })
}

// 修改分组明细
export function updateGroupItem(data) {
  return request({
    url: '/video/GroupItem',
    method: 'put',
    data: data
  })
}

// 删除分组明细
export function delGroupItem(id) {
  return request({
    url: '/video/GroupItem/' + id,
    method: 'delete'
  })
}
